""""""
"""
1-100之间的奇数累加求和并且奇数中是7的倍数要进行过滤不进行累加。使用while循环 
"""

num1 = 1

sum1 = 0

while num1 <= 100:
    if num1 % 2 == 1 and num1 % 7 != 0:
        sum1 += num1
    num1 += 1

print("1-100之间的奇数累加求和并且奇数中是7的倍数要进行过滤和为: ", sum1)

# num1 = 1
# # 定义一个初始 和
# total = 0
#
# while num1 <= 100:
#     # num1就是1-100的数字   取余  num1 % 2 == 0
#     if num1 % 2 == 0:
#         # 是偶数
#         # 计算和
#         total += num1
#     num1 += 1
#
# print(total)

# 初始值
# num = 1
# # 定义一个变量来表示和
# total = 0
# while num <= 100:
#     # 求和
#     total += num
#     num += 1
# print(total)
